<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <!-- 引入初始化 -->
  <link rel="stylesheet" href="css/base.css">
  <!-- 引入购物车样式 -->
  <link rel="stylesheet" href="css/index.css">
</head>

<body>
  <div class="car">
    <table>
      <thead>
        <tr>
          <th>
            <input type="checkbox" id="all">全选
          </th>
          <th>
            商品
          </th>
          <th>
            单价
          </th>
          <th>
            商品数量
          </th>
          <th>
            小计
          </th>
          <th>
            操作
          </th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>
            <input type="checkbox" readonly>
          </td>
          <td>
            <img src="uploads/01.jpg">
            <p>牛奶</p>
          </td>
          <td>
            20￥
          </td>
          <td>
            <div class="count-c clearfix">
              <a href="javascript:" class="reduce disabled">-</a>
              <input type="text" value="1">
              <a href="javascript:" class="add">+</a>
            </div>
          </td>
          <td>
            20￥
          </td>
          <td>
            <a href="javascript:" class="del">删除</a>
          </td>

        </tr>
        <tr>
          <td>
            <input type="checkbox">
          </td>
          <td>
            <img src="uploads/01.jpg">
            <p>牛奶</p>
          </td>
          <td>
            20￥
          </td>
          <td>
            <div class="count-c clearfix">
              <a href="javascript:" class="reduce">-</a>
              <input type="text" readonly value="2">
              <a href="javascript:" class="add">+</a>
            </div>
          </td>
          <td>
            40￥
          </td>
          <td>
            <a href="javascript:" class="del">删除</a>
          </td>

        </tr>
        <tr>
          <td>
            <input type="checkbox">
          </td>
          <td>
            <img src="uploads/01.jpg">
            <p>牛奶</p>
          </td>
          <td>
            20￥
          </td>
          <td>
            <div class="count-c clearfix">
              <a href="javascript:" class="reduce">-</a>
              <input type="text" readonly value="2">
              <a href="javascript:" class="add">+</a>
            </div>
          </td>
          <td>
            40￥
          </td>
          <td>
            <a href="javascript:" class="del">删除</a>
          </td>

        </tr>
        <tr>
          <td>
            <input type="checkbox">
          </td>
          <td>
            <img src="uploads/01.jpg">
            <p>牛奶</p>
          </td>
          <td>
            20￥
          </td>
          <td>
            <div class="count-c clearfix">
              <a href="javascript:" class="reduce">-</a>
              <input type="text" readonly value="2">
              <a href="javascript:" class="add">+</a>
            </div>
          </td>
          <td>
            40￥
          </td>
          <td>
            <a href="javascript:" class="del">删除</a>
          </td>

        </tr>

      </tbody>
    </table>
    <div class="controls clearfix">
      <a href="javascript:" class="del-all">删除所选商品</a>
      <a href="javascript:" class="clear">清理购物车</a>
      <a href="javascript:" class="pay">去结算</a>
      <p>
          已经选中<span id="totalCount">0</span>件商品;总价：<span id="totalPrice" class="total-price">0￥</span>
     </p>
    </div>
  </div>
  <script src="js/car.js"></script>
</body>

</html>